package com.turing.procedure.service.task.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.turing.procedure.dao.task.ReviewRecordMapper;
import com.turing.procedure.model.domain.task.ReviewRecord;
import com.turing.procedure.service.task.ReviewRecordService;
import com.turing.procedure.vo.in.ReviewRecordVo;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import lombok.AllArgsConstructor;

/**
* @Description 服务类实现
* @Author livin
* @Date 2022-04-24
*/
@Service
public class ReviewRecordServiceImpl extends ServiceImpl<ReviewRecordMapper, ReviewRecord> implements ReviewRecordService {

    @Override
    public boolean addReviewRecords(ReviewRecordVo reviewRecordVo) {
        ReviewRecord reviewRecord = new ReviewRecord();
        BeanUtils.copyProperties(reviewRecordVo,reviewRecord);
        return save(reviewRecord);
    }

}
